//
//  SingleListModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/16.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "SingleListModel.h"

@implementation SingleListModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.freight = [dict[@"freight"] floatValue];
        self.ID = [dict[@"id"] integerValue];
        self.isNeedInvoice = [dict[@"isNeedInvoice"] boolValue];
        self.isUserselfPick = [dict[@"isUserselfPick"] boolValue];
        self.orderNo = dict[@"orderNo"];
        self.payNumber = dict[@"payNumber"];
        self.productCount = [dict[@"productCount"] integerValue];
        self.productName = dict[@"productName"];
        self.productNo = dict[@"productNo"];
        self.productUnitPrice = [dict[@"productUnitPrice"] floatValue];
        self.productPrice = [dict[@"productPrice"] floatValue];
        self.status = [dict[@"status"] integerValue];
        self.thumbnailUrl = dict[@"thumbnailUrl"];
        self.totalPrice = [dict[@"totalPrice"] floatValue];
        self.tradeChannel = [dict[@"tradeChannel"] integerValue];
        self.type = [dict[@"type"] integerValue];
        self.productType = [dict[@"productType"] integerValue];
        self.shopName = dict[@"shopName"];
        self.userId = [dict[@"userId"] integerValue];
        
        self.invoiceTitle = dict[@"invoiceTitle"];
        self.commentStartLevel = [dict[@"commentStartLevel"] integerValue];
        self.commentContent = dict[@"commentContent"];
        self.isComment = [dict[@"isComment"] integerValue];
        self.receiveAddress = dict[@"receiveAddress"];
        self.receivePerson = dict[@"receivePerson"];
        self.receivePersonPhone = dict[@"receivePersonPhone"];
        self.expressCompany = dict[@"expressCompany"];
        self.courierNumber = dict[@"courierNumber"];
        self.portraitUrl = dict[@"portraitUrl"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[SingleListModel alloc]initWithDict:dict];
}


@end
